package com.example.aigc_education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.aigc_education.domain.Answer;
import com.example.aigc_education.domain.po.SelectAnswerByAdminPO;
import com.example.aigc_education.domain.po.SelectAnswerByQuestionPO;
import com.example.aigc_education.domain.po.SelectAnswerByUserPO;

import java.util.List;

public interface AnswerService extends IService<Answer> {

    void addAnswer(Answer answer);

    void updateAnswer(Answer answer, Long answerId);

    void deleteAnswer(Long answerId);

    List<SelectAnswerByUserPO> selectAnswerAndQuestionByUser(Long userId, Long examId);

    List<SelectAnswerByQuestionPO> selectSingleAnswerStation(Long questionId, Long examId);

    List<SelectAnswerByAdminPO> selectAllAnswer();
}
